 var routes = [
  {
    path:'/index',
    name:'index',
    component:()=>import('../views/Index.vue'),
    children:[
        {
            path:'/index/shouye',
            name:'shouye',
            component:()=>import('@/components/ShouYe.vue')
        },
        {
            path:'/index/baotuan',
            name:'baotuan',
            component:()=>import('../components/BaoTuan.vue')
        },
        {
            path:'/index',
            redirect:'/index/shouye'
        }

    ]

  },
  {
    path:'/',
    redirect:'/index'
  }
  ]
  export default routes